package com.sjy.MyBlog.bean;

import java.sql.Timestamp;

public class Comment extends CommentKey {
    private String name;

    private String email;

    private String tel;

    private Timestamp createTime;

    private Integer agreeNum;

    private Integer commNum;

    private Integer commId;

    private String content;

    public Comment(Integer id, Integer articleId, String name, String email, String tel, Timestamp createTime, Integer agreeNum, Integer commNum, Integer commId) {
        super(id, articleId);
        this.name = name;
        this.email = email;
        this.tel = tel;
        this.createTime = createTime;
        this.agreeNum = agreeNum;
        this.commNum = commNum;
        this.commId = commId;
    }

    public Comment(Integer id, Integer articleId, String name, String email, String tel, Timestamp createTime, Integer agreeNum, Integer commNum, Integer commId, String content) {
        super(id, articleId);
        this.name = name;
        this.email = email;
        this.tel = tel;
        this.createTime = createTime;
        this.agreeNum = agreeNum;
        this.commNum = commNum;
        this.commId = commId;
        this.content = content;
    }

    public Comment() {
        super();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Integer getAgreeNum() {
        return agreeNum;
    }

    public void setAgreeNum(Integer agreeNum) {
        this.agreeNum = agreeNum;
    }

    public Integer getCommNum() {
        return commNum;
    }

    public void setCommNum(Integer commNum) {
        this.commNum = commNum;
    }

    public Integer getCommId() {
        return commId;
    }

    public void setCommId(Integer commId) {
        this.commId = commId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }
}